package com.wobaby.junit.testxlm;

import java.util.ArrayList;
import java.util.Collection;

import org.junit.Test;

import com.wobaby.dao.BabyManagement;
import com.wobaby.dao.MessagerContentManagement;
import com.wobaby.dao.UserManagement;
import com.wobaby.vo.MessagerContentVO;
import com.wobaby.vo.UserVO;


public class MessageContentTest {
	
	// @Test
	 public void Test()
	 {
		 MessagerContentManagement mcm =  new MessagerContentManagement(); 
		 Collection<MessagerContentVO> list = new ArrayList();
	
		 list =  mcm.listMessagerByID(2);
		
		    for(MessagerContentVO mcv :list)
		    {
		    	System.out.print(mcv.getTitle() +"\n" + mcv.getCraeteDate() + "\n" + mcv.getContent());
		   }
		  
		   

		    
		    
		    
		 
	 }
	 
	 @Test
	 public void listUsersByfunctionTypeTest() {
		 UserManagement ug = new UserManagement();
		 Collection<UserVO> list = new ArrayList();
		 list.addAll(ug.listUsersByfunctionType("parents"));
		 for(UserVO uv:list) {
			 System.out.println(uv);
		 }
		
	 }
	 
	 

}
